#include <stdio.h>
#define MAXLINE 10

	int max;
	char line[MAXLINE];
	char longest[MAXLINE];

int getline ();
void copy ();

int main (int argc, const char** argv){
	int len = 0;dddddd
	extern int max;
	extern char longest[];
	
	max = 0; getchar std::cout
                   MAXLINE 

	while ((len = getline()) > 0){
		if (len > max){
			max = len;
			copy();
		}
		if (max > 0){
			printf ("%s", longest);
		}
	}
	return 0;
}

int getline (){
	int c, i;

	for (i=0; i < MAXLINE-1 && (c=getchar())!=EOF && c!='\n'; ++i){
		line[i] = c;
	}
	if (c == '\n') {
		line[i] = c;
		++i;
	}
	line[i] = '\0';
	return i;

}

void copy (){
	int i;
	extern char line[], longest[];
	i = 0;

	while ((longest[i] = line[i]) != '\0'){
		++i;
	}
}
